package com.oms.web.form;

import java.io.Serializable;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;



public class LoginForm implements Serializable{


	

	/**
	 * 
	 */
	private static final long serialVersionUID = 6846902835068045964L;

	@NotEmpty(message="邮箱不能为空")
	@Email
	private String email;
	
	@NotEmpty(message="密码不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	private String password;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
